﻿@using XStudio.XCRF.Web.Models.LabCheck
@model LabCheckWithStd
<table>
    <tr>
        <th>白细胞</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.BXB < Model.labCheckStd.BXBmin))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.BXB)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.BXB > Model.labCheckStd.BXBmax))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.BXB)↑</td>
            }else
            {
                <td> @Html.MarkDisplayFor(model => model.labCheck.BXB)</td>
            }
        }
    </tr>
    <tr>
        <th>粪便潜血试验</th>
        @{
            if (Model.labCheckStd != null && (Model.labCheck.FB < Model.labCheckStd.FBmin))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.FB)↓</td>
            }
            else if (Model.labCheckStd != null && (Model.labCheck.FB > Model.labCheckStd.FBmax))
            {
                <td style ="color:Red;"> @Html.MarkDisplayFor(model => model.labCheck.FB)↑</td>
            }else
            {
                <td> @Html.MarkDisplayFor(model => model.labCheck.FB)</td>
            }
        }
    </tr>
</table>